﻿/// <reference path="../../../extjs/ext-all-debug.js" />
Ext.define('yzmh.view.link.List', {
    extend: 'Ext.grid.Panel',
    alias: 'widget.linklist',
    closable: true,
    store: 'Links',
    loadMask: true,
    columnLines: true,
    forceFit: true,
    sortableColumns:false,
    viewConfig: {
        trackOver: true,
        stripeRows: true,
        plugins: {
            ptype: 'gridviewdragdrop'
        }
    },
    tbar: [
            '查询: ',
            '',
            { xtype: 'tbfill' },
            { action: 'add', text: '新增', icon: 'extjs/icons/link_add.png' },
            { action: 'delete', text: '删除', icon: 'extjs/icons/link_delete.png' }
    ],
    selType: 'rowmodel',
    selModel: Ext.create("Ext.selection.RowModel", {
        mode: 'MULTI'
    }),
    columns: [
        { header: '编号', dataIndex: 'id', align: 'center', width: 50 },
        { header: '名称', dataIndex: 'sitename', width: 160 },
        { header: '链接', dataIndex: 'siteurl', width: 160 },
        { header: '说明', dataIndex: 'siteinfo', width: 160 }
    ]
});


